import request from '@/utils/request'

// 查询经理信息列表
export function listManager(query) {
  return request({
    url: '/bath/manager/list',
    method: 'get',
    params: query
  })
}

// 查询经理信息详细
export function getManager(managerid) {
  return request({
    url: '/bath/manager/' + managerid,
    method: 'get'
  })
}

// 新增经理信息
export function addManager(data) {
  return request({
    url: '/bath/manager',
    method: 'post',
    data: data
  })
}

// 修改经理信息
export function updateManager(data) {
  return request({
    url: '/bath/manager',
    method: 'put',
    data: data
  })
}

// 删除经理信息
export function delManager(managerid) {
  return request({
    url: '/bath/manager/' + managerid,
    method: 'delete'
  })
}

// 导出经理信息
export function exportManager(query) {
  return request({
    url: '/bath/manager/export',
    method: 'get',
    params: query
  })
}